package com.fansaikj.fansplat;

import com.relax.relax.common.annotation.EnableRelax;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

@EnableRelax
@SpringBootApplication
public class FansplatApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(FansplatApplication.class, args);
        System.out.println("接口文档地址：http://localhost:" + context.getBean(Environment.class).getProperty("server.port") + "/doc.html");
    }

}
